import Vue from 'vue'
import Vuex from 'vuex'
import app from './modules/app'
import user from './modules/user'
import common from './modules/common'
import getters from './getters'
// import createLogger from 'vuex/dist/logger' // 日志插件
Vue.use(Vuex)

const debug = process.env.NODE_ENV !== 'production';

export default new Vuex.Store({
    modules: {
        user,
        app,
        common
    },
    getters,
    // plugins: debug ? [createLogger()] : [],
})
